﻿using System;
using System.IO;


namespace mForum.Core.Infrastructure
{
    public class FileWrapper : IFileWrapper
    {
        public string ReadAllText(string filePath)
        {
            return File.ReadAllText(filePath);
        }

        public bool Exists(string path)
        {
            return File.Exists(path);
        }

        public DateTime GetLastWriteTime(string path)
        {
            return File.GetLastWriteTime(path);
        }

        public void Move(string sourcePath, string destinationPath)
        {
            File.Move(sourcePath, destinationPath);
        }

        public void Delete(string path)
        {
            File.Delete(path);
        }
    }
}
